package io.renren.modules.generator.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 企业监管流程上报
 * 
 * @author zd
 * @date 2020-09-21 22:05:44
 */
@Data
@ApiModel(value = "企业监管流程上报实体对象", description = "企业监管流程上报实体对象")
public class EnterpriseSupervisionReportVo implements Serializable {

	/**
	 * 企业编号
	 */
	@NotBlank(message = "企业编号不能为空!")
	@ApiModelProperty(name = "code", dataType = "String", value = "企业编号")
	private String code;
	/**
	 * 企业名称
	 */
	@NotBlank(message = "企业名称不能为空!")
	@ApiModelProperty(name = "name", dataType = "String", value = "企业名称")
	private String name;
	/**
	 * 事件标题
	 */
	@NotBlank(message = "事件标题不能为空!")
	@ApiModelProperty(name = "title", dataType = "String", value = "事件标题")
	private String title;
	/**
	 * 事件描述
	 */
	@NotBlank(message = "事件描述不能为空!")
	@ApiModelProperty(name = "desc", dataType = "String", value = "事件描述")
	private String desc;
	/**
	 * 事件类型（0：非重要事件，1：重要事件）
	 */
	@NotBlank(message = "事件类型不能为空！")
	@Pattern(regexp = "0|1",message = "只允许输入0,1")
	@ApiModelProperty(name = "type", dataType = "String", value = "事件类型（0：非重要事件，1：重要事件）")
	private String type;
	/**
	 * 检查类型 (1:安全巡检,2:环保巡检)
	 */
	@NotBlank(message = "检查类型不能为空！")
	@Pattern(regexp = "1|2",message = "只允许输入1,2")
	@ApiModelProperty(name = "checkType", dataType = "String", value = "检查类型 (1:安全巡检,2:环保巡检)")
	private String checkType;
	/**
	 * 照片
	 */
	@ApiModelProperty(name = "pics", dataType = "String", value = "照片地址")
	private String pics;
	/**
	 * 坐标经度
	 */
	@ApiModelProperty(name = "lon", dataType = "String", value = "坐标经度")
	private String lon;
	/**
	 * 坐标纬度
	 */
	@ApiModelProperty(name = "lat", dataType = "String", value = "坐标纬度")
	private String lat;
	/**
	 * 坐标地点名称
	 */
	@ApiModelProperty(name = "address", dataType = "String", value = "坐标地点名称")
	private String address;

	/**
	 * 用户编号
	 */
	@ApiModelProperty(name = "userNo", dataType = "String", value = "用户编号",hidden = true)
	private String userNo;

	/**
	 * 用户名
	 */
	@ApiModelProperty(name = "userName", dataType = "String", value = "用户名",hidden = true)
	private String userName;

	/**
	 * 角色编码
	 */
	@ApiModelProperty(name = "roleCode", dataType = "String", value = "角色编码",hidden = true)
	private String roleCode;

	/**
	 * 角色类型
	 */
	@ApiModelProperty(name = "roleType", dataType = "String", value = "角色类型",hidden = true)
	private Integer roleType;
}
